//
//  LanguageModel.m
//  ImGuider
//
//  Created by 王鹏宇 on 2018/3/5.
//  Copyright © 2018年 imguider. All rights reserved.
//

#import "LanguageModel.h"

@implementation LanguageModel


- (BOOL)isEqual:(id)object{
    
    LanguageModel * model = object;
    if ([self.lang isEqualToString:model.lang]) {
        return YES;
    }
    return NO;
}
//lang,*translation,*name

- (instancetype)initWithCoder:(NSCoder *)coder {
    
    self = [super init];
    if (self) {
        
        self.lang = [coder decodeObjectForKey:@"lang"];
        self.translation = [coder decodeObjectForKey:@"translation"];
        self.name_local = [coder decodeObjectForKey:@"name_local"];
    }
    return self;
}


- (void)encodeWithCoder:(NSCoder *)coder {
    
    [coder encodeObject:self.lang forKey:@"lang"];
    [coder encodeObject:self.translation forKey:@"translation"];
    [coder encodeObject:self.name_local forKey:@"name_local"];
}

@end
